package model

import "gorm.io/gorm"

type Adimin struct {
	gorm.Model
	Account  string `gorm:"unique;not null;type:varchar(255)"`
	Password string `gorm:"not null;type:varchar(255)"`
	Name     string `gorm:"not null;type:varchar(255)"`
	Type     int    `gorm:"default:2;type:tinyint"`
}

const (
	AdiminType = 1
)

func (u *Adimin) TableName() string {
	return "admins"
}
